import { validateNumber, validateInter, isMobile, isIdCard, logitude, latitude } from "@/util/rulesReg";
export const column = [{
		label: '设备名称',
		prop: 'name',
		rules: [{
			required: true,
			message: "请选择机器类型",
			trigger: "blur"
		}]
	},
	{
		label: '所属项目',
		prop: 'deptInfoId',
		type: "select",
		dicUrl: "/api/squirrel-ficm/deptinfo/getProjectList",
		props: {
			label: "deptName",
			value: "id"
		},
		rules: [{
			required: true,
			message: "请选择机器类型",
			trigger: "blur"
		}]
	},
	{
		label: '经度',
		prop: 'logitude',
		rules: [{
			validator: logitude,
			trigger: 'blur',
			required: true
		}]
	},
	{
		label: '纬度',
		prop: 'latitude',
		rules: [{
			validator: latitude,
			trigger: 'blur',
			required: true
		}]
	},
	{
		label: '通道编码',
		prop: 'channelNum',
		rules: [{
			required: true,
			message: "请输入通道编码",
			trigger: "blur"
		}]
	},
	{
		label: '通道名称',
		prop: 'channelName',
		rules: [{
			required: true,
			message: "请输入通道名称",
			trigger: "blur"
		}]
	},
	{
		label: '备注',
		prop: 'remark',
		type: 'textarea',
		hide: true,
		span: 24,
		rules: [{
			required: true,
			message: "请输入备注",
			trigger: "blur"
		}]
	},
]